// 导入react
import React from 'react'
import ReactDOM from 'react-dom'
/* // 创建react元素
const title = React.createElement('h1',null,'Hello React 脚手架')
// 3. 渲染react元素
ReactDOM.render(title,document.getElementById('root')) */

const name = 'Jack'
const age = '19'
const title = (
  <h1 className='title'>
    hello JSX,{name},年龄：{age}
    <span />这是span
    
    <p></p>
    </h1>
)

ReactDOM.render(title, document.getElementById('root'))